package adapter;

//洗衣机使用三相插座
public class Wash implements ThreeElectricOutlet {
    private String name;

    public Wash() {
        name = "黄河洗衣机";
    }

    public Wash(String name) {
        this.name = name;
    }

    public void connectElectricCurrent() {
        turnOn();
    }

    public void turnOn() {
        System.out.println(name + "开始洗衣服了");
    }
}
